using SheLife.Domain.Common;

namespace SheLife.Domain.Entities;

public class HealthRecord : BaseEntity
{
    public int UserId { get; set; }
    public DateTime RecordDate { get; set; } = DateTime.UtcNow;
    public string RecordType { get; set; } = string.Empty; // 生理期、症状、体重等
    public string Title { get; set; } = string.Empty;
    public string Description { get; set; } = string.Empty;
    public decimal? Value { get; set; } // 数值型记录，如体重、体温等
    public string Unit { get; set; } = string.Empty; // 单位，如kg、℃等
    public Dictionary<string, string>? Metadata { get; set; } // 额外的元数据
    
    // 导航属性
    public virtual User User { get; set; } = null!;
}